#coding:utf-8
import requests

# add api case
# r = requests.post('http://127.0.0.1:9012/manage/api/case',json={
#     "project_id":1,
#     "module_id":1,
#     "effect":"888",
#     "method":"GET",
#     "req_type":"0",
#     "host":"http://127.0.0.1:9012",
#     "path":"/manage/api/case",
#     "pre_caseId":"",
#     "run_times":1,
#     "concurrent":1,
#     "headersJson":[],
#     "bodysJson":[],
#     "chkJson":[],
#     "person":"",
#     "id":1
# })
# print(r.text)

import json

# r = requests.get('http://127.0.0.1:9013/case/api/params/name?project_id=1&params_name=$ffff$',verify=False)
#
# print(r.text)

import difflib

text1 = "ffffddd"
text1_lines = text1.splitlines()
text2 = "fcdsssss"
text2_lines = text2.splitlines()
d = difflib.Differ()
diff = d.compare(text1_lines,text2_lines)

print('\n'.join(diff))


# def different_toHtml(text1,text2):
#     text1_lines = text1.splitlines()
#     text2_lines = text2.splitlines()
#     d = difflib.HtmlDiff()
#     diff = d.make_file(text1_lines, text2_lines)
#     return diff